import {INCREMENT,DECREMENT} from "../constant/count"
import store from "../store"
export const incrementAction = value => ({
    type: INCREMENT,
    data: value
})
export const decrementAction = value => ({
    type: DECREMENT,
    data: value
})
export const equalityAction = value =>{
    return () => {
        setTimeout(()=>{
            store.dispatch({
                type: INCREMENT,
                data: value
            })
        },2000)
    }
}